sgdk
|
00001 00011 #ifndef _VDP_SPR_H_ 00012 #define _VDP_SPR_H_ 00013 00018 #define MAX_SPRITE 80 00019 00029 #define SPRITE_SIZE(w, h) ((((w) - 1) << 2) | ((h) - 1)) 00030 00031 00047 typedef struct 00048 { 00049 s16 posx; 00050 s16 posy; 00051 u16 tile_attr; 00052 u8 size; 00053 u8 link; 00054 } SpriteDef; 00055 00056 00060 extern SpriteDef vdpSpriteCache[MAX_SPRITE]; 00061 00062 00069 void VDP_resetSprites(); 00070 00088 void VDP_setSprite(u16 index, s16 x, s16 y, u8 size, u16 tile_attr, u8 link); 00100 void VDP_setSpriteP(u16 index, const SpriteDef *sprite); 00120 void VDP_setSpriteDirect(u16 index, s16 x, s16 y, u8 size, u16 tile_attr, u8 link); 00132 void VDP_setSpriteDirectP(u16 index, const SpriteDef *sprite); 00133 00147 void VDP_setSpritePosition(u16 index, s16 x, s16 y); 00148 00149 00163 void VDP_setSprites(u16 index, const SpriteDef *sprites, u16 num); 00177 void VDP_setSpritesDirect(u16 index, const SpriteDef *sprites, u16 num); 00178 00185 void VDP_updateSprites(); 00186 00187 00188 00189 #endif // _VDP_SPR_H_